package org.itboys.member.entity;

import org.itboys.mongodb.entity.BaseLongIdEntity;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;
/**
 * 会员常用地址
 * @author weisky
 *
 */
@Entity(value = "MemberAddress", noClassnameStored = true)
public class MemberAddress extends BaseLongIdEntity{

	private static final long serialVersionUID = 241657085316956820L;
	
	@Indexed
	private long memberId;
	private String name;//收货人姓名
	private String mobi;//手机号
	private Long provinceId;//省
	private Long cityId;//市
	private Long districtId;//区县
	private String address;
	private boolean isDefault = true;//是否是默认收货地址
	
	public long getMemberId() {
		return memberId;
	}
	public void setMemberId(long memberId) {
		this.memberId = memberId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMobi() {
		return mobi;
	}
	public void setMobi(String mobi) {
		this.mobi = mobi;
	}
	public Long getProvinceId() {
		return provinceId;
	}
	public void setProvinceId(Long provinceId) {
		this.provinceId = provinceId;
	}
	public Long getCityId() {
		return cityId;
	}
	public void setCityId(Long cityId) {
		this.cityId = cityId;
	}
	public Long getDistrictId() {
		return districtId;
	}
	public void setDistrictId(Long districtId) {
		this.districtId = districtId;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public boolean isDefault() {
		return isDefault;
	}
	public void setDefault(boolean isDefault) {
		this.isDefault = isDefault;
	}
}
